package com.zhu.util;

import java.util.Collection;
import java.util.Map;

/**
 * Created by DELL on 2016/1/5.
 */
public class EmptyUtil {

    public static boolean isNullOrEmpty(String str){
        return str == null || str.isEmpty();
    }

    public static boolean notNUllAndEmpty(String str){
        return str != null && !str.isEmpty();
    }

    public static boolean isNullOrEmpty(Collection coll){
        return coll == null || coll.isEmpty();
    }

    public static boolean notNUllAndEmpty(Collection coll){
        return coll != null && !coll.isEmpty();
    }

    public static boolean isNullOrEmpty(Map map){
        return map == null || map.isEmpty();
    }

    public static boolean notNUllAndEmpty(Map map){
        return map != null && !map.isEmpty();
    }
}
